var express = require('express');
var router = express.Router();
const datactrl = require('../controllers/cate.controllers');

router.post('/data', datactrl.create); //新增
router.put('/data/:id', datactrl.updata); //修改
// router.delete('/data/:id',datactrl.remove);
router.post('/list/:type', datactrl.list); //查询模块数据
router.get('/data/:id', datactrl.getData); //查询单条数据
router.get('/all', datactrl.getAll); //查询单条数据
router.post('/data/removes', datactrl.removes);

module.exports = router;